import { defineStore } from "pinia";
export const isLoginStore = defineStore("isLogin", {
  state: () => ({
    isLoginBox: false,
    isLoginFlag: false,
  }),
  getters: {
    getIsLoginBox() {
      return this.isLoginBox;
    },
    getIsLoginFlag() {
      return this.isLoginFlag;
    },
  },
  actions: {
    setIsLoginBox(value) {
      this.isLoginBox = value;
    },
    setIsLoginFlag(value) {
      this.isLoginFlag = value;
    },
  },
  
  persist: {
    enabled: true,
  },
});
